package com.xuecheng.system;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
//如果手动指定扫描的包，那么默认的扫描包规则失效
@ComponentScan(
        basePackages =
                {
                    "com.xuecheng.system",
                    "com.xuecheng.web"
                }
)
@MapperScan("com.xuecheng.system.mappers") //扫描指定报下的所有dao接口
public class SystemApplication {
    public static void main(String[] args) {
        SpringApplication.run(SystemApplication.class,args);
    }
}
